import Vue from 'vue';
import Vuex from 'vuex';
import createPersistedState from 'vuex-persistedstate';
import app from './modules/app';
import user from './modules/user';

Vue.use(Vuex);

export default new Vuex.Store({
  modules: {
    app,
    user,
  },
  plugins: [
    createPersistedState({
      paths: ['app.sidebar'],
    }),
  ],
});
